package com.ruoyi;

import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Iterator;

/**
 * @author
 * @date 2022/10/19 12:57
 **/
public class TestDemo {
    public static void main(String[] args) {
        Path path = Paths.get("F:\\imgDemo");
        Iterator<Path> iterator = path.iterator();
        while (iterator.hasNext()) {

            System.out.println("iterator.next() = " + iterator.next());
        }
    }
}
